import request from '../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 站点信息列表分页查询
export const findSiteInfoListPage = query => {
    return request({
        url: baseRequest_url+'/admin/siteInfo/findSiteInfoListPage',
        method: 'get',
		params: query,
    });
};
// 站点信息详情查询
export const findSiteInfoInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/siteInfo/findSiteInfoInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 站点信息详情查询
export const findSiteInfoInfoByAuthCode = query => {
    return request({
        url: baseRequest_url+'/admin/siteInfo/findSiteInfoInfoByAuthCode/'+query,
        method: 'get',
		params: query,
    });
};
// 新增站点信息
export const addSiteInfo = data => {
    return request({
        url: baseRequest_url+'/admin/siteInfo/saveSiteInfo',
        method: 'post',
		data: data,
    });
};
// 编辑站点信息
export const saveSiteInfo = data => {
    return request({
        url: baseRequest_url+'/admin/siteInfo/saveSiteInfo',
        method: 'put',
		data: data,
    });
};
// 删除站点信息
export const deleteSiteInfo = data => {
    return request({
        url: baseRequest_url+'/admin/siteInfo/deleteSiteInfo/'+data,
        method: 'delete',
    });
};